import request from '../../utils/request';
import tryUrl from '../urls/try';


//新增员工试用期表
export const addTry = data => {
    return request({
        headers: {
            "Content-Type": "application/json"
        },
        url: tryUrl.addTryUrl,
        method: 'post',
        data: data
    });
};


//根据条件获取试用表的所有信息
export const fetchTry = data => {
    return request({
        url: tryUrl.fetchTryUrl,
        method: 'get',
        params: data
    });
};


//更新试用期表信息
export const updateTry = data => {
    return request({
        headers: {
            "Content-Type": "application/json"
        },
        url: tryUrl.updateTryUrl,
        method: 'post',
        data: data
    });
};


//根据上传的参数获取已经转正的员工信息
export const getTryByResult = data => {
    return request({
        url: tryUrl.getTryByResultUrl,
        method: 'get',
        params: data
    });
};
